<?php
	require_once $_SERVER['DOCUMENT_ROOT'] . '/SAGER/logic/factory/CommandFactory.php';
	
	error_reporting (E_ALL ^ E_NOTICE);
	
	$debug = $_SESSION['debug'];
	
	class PresenterChangeUser {
		
		public function __construct() {}
		
		public function clickChangeUser ($pkUsername,$password,$firstName,$secondName,$firstLastName,$secondLastName,$emailAddress,$fkIdRole) {
			
			$command = CommandFactory :: createCommandChangeUser ($pkUsername,$password,$firstName,$secondName,$firstLastName,$secondLastName,$emailAddress,$fkIdRole);
			
			$command -> execute();		
			return $command->getResult();
		
		}	
	}
?>